package com.cloudfun.campusshare.service;

import com.cloudfun.campusshare.common.model.dto.FeedbackDTO;
import com.cloudfun.campusshare.common.model.dto.FeedbackSearchDTO;
import com.cloudfun.campusshare.common.model.vo.FeedbackExportVO;
import com.cloudfun.campusshare.common.model.vo.FeedbackListVO;
import com.cloudfun.campusshare.common.response.PageResult;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by CodeGenerator on 2020/05/27
 */
public interface FeedbackService {

    /**
     * 创建
     *
     * @param feedbackDTO
     */
    void create(FeedbackDTO feedbackDTO);

    /**
     * 修改
     *
     * @param feedbackDTO
     */
    void modify(FeedbackDTO feedbackDTO);

    /**
     * 分页搜索列表
     *
     * @param pageable
     * @param searchDTO
     * @return
     */
    PageResult<FeedbackListVO> search(Pageable pageable, FeedbackSearchDTO searchDTO);

    /**
     * 删除
     *
     * @param id
     */
    void delete(String id);

    /**
     * 导出
     *
     * @param ids
     * @param searchDTO
     * @return
     */
    List<FeedbackExportVO> export(List<String> ids, FeedbackSearchDTO searchDTO);
}